package com.ljj.gulimall;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * 整合mybatis-plus
 * 1.导入场景启动器
 * 2.mysql连接器
 * 3.配置数据库连接数据
 * 4.配置MapperScan
 * 5.在application.yml中配置Mapper映射文件位置
 * 	classpath*:/mapper/** /*.xml 中，classpath*表示扫描项目下所有mapper
 * 6.配置主键自增
 * 
 * @author Lenovo
 *
 */
@MapperScan(basePackages = "com.ljj.gulimall.product.dao")
@SpringBootApplication
@EnableDiscoveryClient
public class GulimallProductApplication {

	public static void main(String[] args) {
		SpringApplication.run(GulimallProductApplication.class, args);
	}

}
